//Section 1 - overall globals
global root "" //set the folder where the data and output is stored
global raw "$root/replication/raw data/"
global cleaned "$root/replication/cleaned/"
global do "$root/replication/do files"
global output "$root/replication/output"
global reghdfe "noabsorb"

*install programs
cap ssc install reghdfe
cap ssc install estout
cap ssc install qqvalue
cap ssc install dsconcat

//Section 2 - S4 globals
global controls AGE female subject_count 

//Section 3 - cleaning and variable creation
run "$do/S4 mock"
run "$do/S4 cleaning"

//Section 4 - analysis
run "$do/S4_tables"
run "$do/background_s4"	
run "$do/S4 to S5"	
run "$do/s4 to s6 analysis"	


//Section 5 - s6 globals
global controls AGE female   stem 
global subgroup female stem female_stem  
global subgroup2  stem below_median_mock

//Section 6 - cleaning and variable creation
run "$do/S6 mock"
run "$do/S6 cleaning"

//Section 7 - analysis
run "$do/S6_tables"
run "$do/background_s6"	

run "$do/attrition"
